This code requires adding SixLabors.ImageSharp v3.1.4 package.